package writeHandle

import (
	"github.com/gorilla/websocket"
)

// WriteMessage 写入消息
func WriteMessage(conn *websocket.Conn, message interface{}) {
	err := conn.WriteJSON(message)
	if err != nil {
		WriteErr(conn, err)
	}
}
